home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
CONVERT.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
49 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_Convert( cString, cException ) --> cString
PARAMETERS:
cString : String to Convert
cException : Character Exceptions
SHORT:
Strip all non-alphanumeric from a string (with optional exceptions).
DESCRIPTION:
_Convert() strips characters from a string, returning only the characters
that are NOT included in:
Omit_Chars : <SPACE> _!$^*,-=+\|/`~{}.':<>%"@()`?][]
I.E., Convert strips all non-alphanumeric characters.
cException can be a string of characters to leave in the string. If
cException = ' $()' then SPACE $, (, and ), will be left in the string, even
though they normally would be removed, and all other punctuation marks in
omit_chars will be removed.
cException is optional if unspecified, no exception is made.
NOTE:
EXAMPLE:
t = _Convert('A B C D E F G !$^*,-=+\|/`~{}()`?][]Z')
Result: t = 'ABCDEFGZ'
t = _convert( 'A B C D E F G !$^*,-=+\|/`~{}()`?][]Z', '$()' )
Result: t = 'ABCDEFG$()Z'
******************************************************************************/